<?php
class ControllerModuleSupport extends Controller { 
	protected function index() {
		$this->load->model('catalog/category');
		$support = $this->model_catalog_category->get_Support();
		if(isset($support))
		{
			$i = 0;
			$temp1 = null;
			foreach($support as $info)
			{
				$temp1[$i] = array(
				"support_id" => $info['support_id'],
				"user_name" => $info['user_name'],
				"full_name" => $info['full_name'], 
				"position" => $info['position'],
				"phone" =>$info['phone'],
				);
				$i++;
			}
			
			$this->data['support']=$temp1;
		
		}else{
			$this->data['support']=NULL;
		}		
		$this->id = 'support';
		
		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/support.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/support.tpl';
		} else {
			$this->template = 'default/template/module/support.tpl';
		}
		
		$this->render();
	}
}